import request from '@/utils/request'
//获取当前登录人未完成的任务
export function teacherUncompletedTask() {
  return request({
    url: '/teacher/task/teacherUncompletedTask',
    method: 'get',
  })
}

// 完成任务
export function teacherCompleteTask(query) {
  return request({
    url: '/teacher/task/teacherCompleteTask',
    method: 'post',
    data: query
  })
}

// 查询我的任务列表
export function listRelationship(query) {
  return request({
    url: '/teacher/task/relationshipList',
    method: 'get',
    params: query
  })
}

// 查询我的任务详细
export function getRelationship(id) {
  return request({
    url: '/teacher/relationship/' + id,
    method: 'get'
  })
}

// 新增我的任务
export function addRelationship(data) {
  return request({
    url: '/teacher/relationship',
    method: 'post',
    data: data
  })
}

// 修改我的任务
export function updateRelationship(data) {
  return request({
    url: '/teacher/relationship',
    method: 'put',
    data: data
  })
}

// 删除我的任务
export function delRelationship(id) {
  return request({
    url: '/teacher/relationship/' + id,
    method: 'delete'
  })
}
